/**
 * 
 */
package com.org.bu.app.jms.sender;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.jms.core.JmsTemplate;

/**
 * @author vk
 * 
 */
public class AMQSender implements JMSSender {

	private JmsTemplate jmsTemplate;

	private ActiveMQQueue queue;

	public void setJmsTemplate(JmsTemplate jmsTemplate) {
		this.jmsTemplate = jmsTemplate;
	}

	public void setQueue(ActiveMQQueue queue) {
		this.queue = queue;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.org.bu.app.jms.sender.JMSSender#sendMesage()
	 */
	public void sendMesage() {
		jmsTemplate.convertAndSend(queue, "HELLO WORLD!!!");
	}
}
